<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>&lt;GError&gt;: </title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
<link rel="home" href="index.html" title="">
<link rel="up" href="ch01.html" title="GLib">
<link rel="prev" href="re13.html" title="&lt;%GLibDateWeekday&gt;">
<link rel="next" href="re15.html" title="&lt;%GLibErrorType&gt;">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="re13.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="re15.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="id-1.1.15"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>&lt;GError&gt;</h2>
<p>&lt;GError&gt;</p>
</div>
<div class="refsect1">
<a name="id-1.1.15.2"></a><h2>Description</h2>
<p>The <code class="code">GError</code> structure contains information about
an error that has occurred.</p>
</div>
<div class="refsect1">
<a name="id-1.1.15.3"></a><h2>Functions</h2>
<div class="refsect2">
<a name="id-1.1.15.3.2"></a><h3>copy</h3>
<div class="informalexample"><pre class="programlisting">(define-values (%return) (error:copy self))
</pre></div>
<p>Makes a copy of <em class="parameter"><code>error</code></em>.</p>
<div class="refsect3">
<a name="id-1.1.15.3.2.4"></a><h4>Parameters</h4>
<div class="informaltable"><table><tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description">
<p>a <span class="type">GError</span></p>
<p>Passed as <code class="code">self</code></p>
</td>
</tr></table></div>
</div>
</div>
<div class="refsect2">
<a name="id-1.1.15.3.3"></a><h3>free</h3>
<div class="informalexample"><pre class="programlisting">(define-values () (error:free self))
</pre></div>
<p>Frees a <span class="type">GError</span> and associated resources.</p>
<div class="refsect3">
<a name="id-1.1.15.3.3.4"></a><h4>Parameters</h4>
<div class="informaltable"><table><tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description">
<p>a <span class="type">GError</span></p>
<p>Passed as <code class="code">self</code></p>
</td>
</tr></table></div>
</div>
</div>
<div class="refsect2">
<a name="id-1.1.15.3.4"></a><h3>matches?</h3>
<div class="informalexample"><pre class="programlisting">(define-values (%return) (error:matches? self domain code))
</pre></div>
<p>Returns <code class="constant">TRUE</code> if <em class="parameter"><code>error</code></em> matches <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>, <code class="constant">FALSE</code>
otherwise. In particular, when <em class="parameter"><code>error</code></em> is <code class="constant">NULL</code>, <code class="constant">FALSE</code> will
be returned.
</p>
<p>If <em class="parameter"><code>domain</code></em> contains a <code class="code">FAILED</code> (or otherwise generic) error code,
you should generally not check for it explicitly, but should
instead treat any not-explicitly-recognized error code as being
equivalent to the <code class="code">FAILED</code> code. This way, if the domain is
extended in the future to provide a more specific error code for
a certain case, your code will still work.</p>
<div class="refsect3">
<a name="id-1.1.15.3.4.5"></a><h4>Parameters</h4>
<div class="informaltable"><table>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description">
<p>a <span class="type">GError</span></p>
<p>Passed as <code class="code">self</code></p>
</td>
</tr>
<tr>
<td class="parameter_name"><p>domain</p></td>
<td class="parameter_description">
<p>an error domain</p>
<p>Passed as <code class="code">domain</code></p>
</td>
</tr>
<tr>
<td class="parameter_name"><p>code</p></td>
<td class="parameter_description">
<p>an error code</p>
<p>Passed as <code class="code">code</code></p>
</td>
</tr>
</table></div>
</div>
</div>
<div class="refsect2">
<a name="id-1.1.15.3.5"></a><h3>error:new-literal</h3>
<div class="informalexample"><pre class="programlisting">(define-values (%return) (error:new-literal domain code message))
</pre></div>
<p>Undocumented</p>
<div class="refsect3">
<a name="id-1.1.15.3.5.4"></a><h4>Parameters</h4>
<div class="informaltable"><table>
<tr>
<td class="parameter_name"><p>domain</p></td>
<td class="parameter_description">
<p></p>
<p>Passed as <code class="code">domain</code></p>
</td>
</tr>
<tr>
<td class="parameter_name"><p>code</p></td>
<td class="parameter_description">
<p></p>
<p>Passed as <code class="code">code</code></p>
</td>
</tr>
<tr>
<td class="parameter_name"><p>message</p></td>
<td class="parameter_description">
<p></p>
<p>Passed as <code class="code">message</code></p>
</td>
</tr>
</table></div>
</div>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>
